package priv.yiyuan.example.design.flyweight;

public class Character {

    private char value;

    private CharacterFormat format;

    public Character(char value, CharacterFormat format) {
        this.value = value;
        this.format = format;
    }

    public void render(int x, int y) {
        format.render(value, x, y);
    }

    public char getValue() {
        return value;
    }

    public CharacterFormat getFormat() {
        return format;
    }
}
